package com.ruoyi.coal.modules.coalpile.domain;

import com.baomidou.mybatisplus.annotation.TableName;

@TableName("cp_coal_attribute_value")
public class AttributeValue {
    private Integer id;

    private Integer yardId;

    private Integer pileId;

    private Integer attributeId;

    private String valueString;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setYardId(Integer yardId) {
        this.yardId = yardId;
    }

    public void setPileId(Integer pileId) {
        this.pileId = pileId;
    }

    public void setAttributeId(Integer attributeId) {
        this.attributeId = attributeId;
    }

    public void setValueString(String valueString) {
        this.valueString = valueString;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.ruoyi.coal.modules.coalpile.domain.AttributeValue))
            return false;
        com.ruoyi.coal.modules.coalpile.domain.AttributeValue other = (com.ruoyi.coal.modules.coalpile.domain.AttributeValue)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$yardId = getYardId(), other$yardId = other.getYardId();
        if ((this$yardId == null) ? (other$yardId != null) : !this$yardId.equals(other$yardId))
            return false;
        Object this$pileId = getPileId(), other$pileId = other.getPileId();
        if ((this$pileId == null) ? (other$pileId != null) : !this$pileId.equals(other$pileId))
            return false;
        Object this$attributeId = getAttributeId(), other$attributeId = other.getAttributeId();
        if ((this$attributeId == null) ? (other$attributeId != null) : !this$attributeId.equals(other$attributeId))
            return false;
        Object this$valueString = getValueString(), other$valueString = other.getValueString();
        return !((this$valueString == null) ? (other$valueString != null) : !this$valueString.equals(other$valueString));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.ruoyi.coal.modules.coalpile.domain.AttributeValue;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $yardId = getYardId();
        result = result * 59 + (($yardId == null) ? 43 : $yardId.hashCode());
        Object $pileId = getPileId();
        result = result * 59 + (($pileId == null) ? 43 : $pileId.hashCode());
        Object $attributeId = getAttributeId();
        result = result * 59 + (($attributeId == null) ? 43 : $attributeId.hashCode());
        Object $valueString = getValueString();
        return result * 59 + (($valueString == null) ? 43 : $valueString.hashCode());
    }

    public String toString() {
        return "AttributeValue(id=" + getId() + ", yardId=" + getYardId() + ", pileId=" + getPileId() + ", attributeId=" + getAttributeId() + ", valueString=" + getValueString() + ")";
    }

    public AttributeValue(Integer id, Integer yardId, Integer pileId, Integer attributeId, String valueString) {
        this.id = id;
        this.yardId = yardId;
        this.pileId = pileId;
        this.attributeId = attributeId;
        this.valueString = valueString;
    }

    public AttributeValue() {}

    public Integer getId() {
        return this.id;
    }

    public Integer getYardId() {
        return this.yardId;
    }

    public Integer getPileId() {
        return this.pileId;
    }

    public Integer getAttributeId() {
        return this.attributeId;
    }

    public String getValueString() {
        return this.valueString;
    }
}

